package cn.dengta.webapp.trade.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
public class FreezeCoinDTO {

	/** 需要冻结钻石的目标用户ID */
	protected Long userId;
	/** 唯一的业务请求标识（同一笔业务，需要使用相同的请求标识，例如：通话频道ID） */
	protected String bizId;
	/** 冻结额度 */
	protected Integer amount;
	/** 全量还是增量 */
	protected boolean allOrIncremental;
	/** 有序递增的请求序列号 */
	protected long seqId;

	public FreezeCoinDTO() {
	}

	public FreezeCoinDTO(Long userId, String bizId, Integer amount, boolean allOrIncremental, long seqId) {
		this.userId = userId;
		this.bizId = bizId;
		this.amount = amount;
		this.allOrIncremental = allOrIncremental;
		this.seqId = seqId;
	}

	public static String aiBiz(Long mediaId) {
		return "AI_" + mediaId;
	}

}
